//
//  CNPullDownRefreshView.m
//  EkeyPropoganda
//
//  Created by mal on 15/4/29.
//  Copyright (c) 2015年 cnsoft. All rights reserved.
//

#import "BIDPullDownRefreshView.h"

@implementation BIDPullDownRefreshView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)taskIdle
{
//    _label.hidden = NO;
//    _imgView.hidden = NO;
//    _avtivityIndicatorView.hidden = YES;
    //[_imgView layer].transform = CATransform3DMakeRotation(M_PI, 0.0f, 0.0f, 1.0f);
    [_label setText:@"下拉刷新"];
}

- (void)taskReady
{
//    _label.hidden = NO;
//    _imgView.hidden = NO;
//    _avtivityIndicatorView.hidden = YES;
    //[_imgView layer].transform = CATransform3DMakeRotation(M_PI*2, 0.0f, 0.0f, 1.0f);
    [_label setText:@"释放开始刷新"];
}

- (void)taskStart
{
//    _label.hidden = NO;
//    _imgView.hidden = YES;
//    _avtivityIndicatorView.hidden = NO;
    [_avtivityIndicatorView startAnimating];
    [_label setText:@"加载中..."];
}

- (void)taskEnd
{
//    _label.hidden = NO;
//    _imgView.hidden = NO;
//    _avtivityIndicatorView.hidden = YES;
    [_avtivityIndicatorView stopAnimating];
}

- (void)hasNoMoreData
{
    [_label setText:@"没有更多数据了"];
}

@end
